﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>嵌套中的清除浮动</title>
<style>
	#box1{ width:300px; border:1px black solid; }
	#box2{ width:100px; height:100px; background:red; float:left; }
</style>
</head>
<body>
<div id="box1">
	<div id="box2"></div>
</div>
</body>
</body>
</html>





